package com.hh.erp.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hh.erp.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hh.erp.entity.request.SysUserRequest;
import com.hh.erp.entity.vo.SysUserVo;
import com.hh.erp.util.page.PageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author zhb
 * @since 2024-03-30
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    public SysUser login(@Param("username") String username,@Param(("password")) String password);

    List<SysUserVo> selectUserList(@Param("page") PageInfo page, @Param("request") SysUserRequest request);
    Long selectUserListCount(@Param("page") PageInfo page, @Param("request") SysUserRequest request);
}
